<?php if(!defined('A')) exit;?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>
<?php
if(isset($_kw)){ 
	echo htmlspecialchars($_kw,ENT_QUOTES)."_搜索结果_英语分级阅读";
}else{
	echo "搜索_英语分级阅读";	
}
?>
</title>
<meta name="keywords" content="分级阅读，英语故事，英文新闻" />
<meta name="description" content="按照用户需要精确查找分级阅读素材，如英语故事，英文新闻，英文笑话等。" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, width=device-width">
<link href="http://read.qsbdc.com/mobile/static/css/touch.css" rel="stylesheet" type="text/css" />
<?php
loadjs(array('common','jquery'),P_JS);
loadcss(array('main'));
loadjs(array('main'));
?>
</head>
<body>
<?php include(dirname(dirname(__FILE__)).'/header.inc.php');?>


<div id="nav1">当前位置：<a href="/mobile.php">首页</a> -> 搜索</div>
<?php
if(isset($_kw)){
?>
<div align="center">关键词：<?php echo htmlspecialchars($_kw,ENT_QUOTES);?></div>
<?php
}
?>
<div class="cat_block">


<div class="form">
<form action="<?php echo url('search','search_')?>" target="_self" method="get" onSubmit="return _search('_kw');">
<select class="type_select" id="type_select" name="_type">
<option value="title">按标题</option>
<option value="attr">按分类</option>
<option value="word">按单词</option>
</select>
<input type="text" value="" class="textinput" id="_kw" name="_kw" />
<input type="submit" class="formbutton" value="文章搜索" />
</form>
</div>
<?php
if(isset($_kw)){
?>
<?php
if(!empty($return)){
?>
<ul>
<?php
	foreach($return[0] as $k=>$v){
?>
	<li class="item_li"><a href="<?php echo url('arc','show',"id={$v['id']}");?>" target="_blank" title="<?php echo $v['title'];?>"><?php echo highlight(htmlspecialchars($_kw,ENT_QUOTES),$v['title']);?></a><span><?php echo $v['hits'];?></span></li>
<?php
	}
	
?>
</ul>
<div><?php echo $return[1];?></div>
<?php
}else{

?>
搜索结果为空！
<?php
}
?>
<?php
}
?>
</div>



<?php include(dirname(dirname(__FILE__)).'/footer.inc.php');?>


</body>
</html>